<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="sistema.Utilizador" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>You Bet, You Win</title>
    </head>
    <body>
        <%
                    Utilizador utilizador = (Utilizador) session.getAttribute("utilizador");
        %>
        <form action="Gestor?gestor=gestor_de_utilizadores&accao=alterarUtilizador&sub_accao=primeira&id=<%= utilizador.getId_utilizador()%>" method="doPost">
            <table border="0" cellpadding="1" cellspacing="0" width="520px">
                <tr>
                    <td class="form_label">Nome:</td>
                    <td class="form_text">
                        <input type="text" name="nome" size="40" maxlength="100" tabindex="1"value="<%= session.getAttribute("nome")%>"/>
                    </td>
                </tr>
                
                <tr>
                <tr>
                    <td class="form_label">Apelido:</td>
                    <td class="form_text">
                        <input type="text" name="apelido" size="40" maxlength="100" tabindex="1"value="<%= session.getAttribute("apelido")%>"/>
                    </td>
                </tr>
                
                <tr>
                <tr>
                    <td class="form_label">Data de Nascimento:</td>
                    <td class="form_text">
                        <input type="text" name="data_de_nascimento_dia" size="2" maxlength="2" tabindex="5" value="<% out.println(session.getAttribute("data_de_nascimento_dia"));%>"/> /
                        <input type="text" name="data_de_nascimento_mes" size="2" maxlength="2" tabindex="6" value="<% out.println(session.getAttribute("data_de_nascimento_mes"));%>"/> /
                        <input type="text" name="data_de_nascimento_ano" size="4" maxlength="4" tabindex="7" value="<% out.println(session.getAttribute("data_de_nascimento_ano"));%>"/>
                    </td>
                </tr>
                <tr>
                <tr>
                    <td class="form_label">Morada:</td>
                    <td class="form_text">
                        <input type="text" name="morada" size="40" maxlength="100" tabindex="1"value="<%= session.getAttribute("morada")%>"/>
                    </td>
                </tr>
                
                <tr>
                    <td class="form_label">E-Mail:</td>
                    <td class="form_text">
                        <input type="text" name="email" size="40" maxlength="100" tabindex="9" value="<% out.println(session.getAttribute("email"));%>"/>
                    </td>
                </tr>

                <tr>
                    <td class="form_label">Telefone:</td>
                    <td class="form_text">
                        <input type="text" name="telefone" size="9" maxlength="9" tabindex="10" value="<% out.println(session.getAttribute("telefone"));%>"/>
                    </td>
                </tr>

                <tr>
                    <td class="form_label">Morada:</td>
                    <td class="form_text">
                        <input type="text" name="morada" size="40" maxlength="100" tabindex="12" value="<% out.println(session.getAttribute("morada"));%>"/>
                    </td>
                </tr>

                <tr>
                    <td class="form_label">C&oacute;digo Postal:</td>
                    <td class="form_text">
                        <input type="text" name="prefixo_codigo_postal" size="4" maxlength="4" tabindex="13" value="<% out.println(session.getAttribute("prefixo_codigo_postal"));%>"/> -
                        <input type="text" name="sufixo_codigo_postal" size="3" maxlength="3" tabindex="14" value="<% out.println(session.getAttribute("sufixo_codigo_postal"));%>"/>
                    </td>
                </tr>

                <tr>
                    <td class="form_label">Localidade:</td>
                    <td class="form_text">
                        <input type="text" name="localidade" size="30" maxlength="30" tabindex="15" value="<% out.println(session.getAttribute("localidade"));%>"/>
                    </td>
                </tr>
                <tr><td colspan="2">&nbsp;</td></tr>
                <tr>
                    <td align="center" colspan="3"><input type=submit value="Submeter" /></td>
                </tr>

            </table>
        </form>
    </body>
</html>
